home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 49
/
Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso
/
-serious-
/
graphics
/
amicad
/
arexx_english
/
calc.amicad
< prev
next >
Wrap
Text File
|
1999-12-06
|
639b
|
17 lines
/* calculatrice en virgule flottante */
/* $VER: 1.00e (© R.Florac, 22 mai 1999) */
options results
if ~show('L','rexxmathlib.library') then
call addlib('rexxmathlib.library',0,-30)
cr='0a'x
p='"Give the operation'cr'to compute.'cr'Operators : * / + - // ** %'cr'Functions : abs acos acosh asin asinh'cr'atan atanh ceil cos cosh cot cotan'cr'csc exp fabs fact floor int'cr'ln log10 nint pow(x,y) sec'cr'sin sinh sqrt tan tanh"'
'ASKTEXT('p',"")'
calcul=result
if calcul="" then exit
resultat = calc.rexx(calcul)
'REQUEST("'calcul' = 'resultat||cr'Do you want to write'cr'this result ?")'
if result="1" then 'WRITE("'resultat'",0,0)'